package net.begincode.blog.service;

import net.begincode.blog.bean.param.BlogClassQueryParam;
import net.begincode.blog.bean.vo.UserHonorInfo;
import net.begincode.blog.bean.param.UserQueryParam;
import net.begincode.blog.entity.Blog;
import net.begincode.blog.entity.User;
import net.begincode.page.PageResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    /**
     * 用户名查询用户信息
     * */
    User queryUserByEmail(String email);

    /**
     * 状态查询用户
     * */
    PageResponse<User> selectByParam(UserQueryParam userQueryParam);

    /**
     * 修改用户状态
     * */
    int updateUserFlag(Long userId,String flag);

    /**
     * 查询用户职称信息
     * @param userId
     * @return
     */
    UserHonorInfo queryUserHonor(Long userId);

    /**
     * 查询活跃用户
     * @param limit
     * @return
     */
    List<User> queryActiveUser(Integer limit);
}
